package net.atos.spring.domain;

import org.hibernate.validator.constraints.NotEmpty;

public class Book {

    @NotEmpty
    private String title;
    @NotEmpty
    private String author;

    public Book(String title, String author) {
	super();
	this.title = title;
	this.author = author;
    }

    public Book() {
	super();
    }

    @Override
    public String toString() {
	return "Book [title=" + title + ", author=" + author + "]";
    }

    public String getTitle() {
	return title;
    }

    public void setTitle(String title) {
	this.title = title;
    }

    public String getAuthor() {
	return author;
    }

    public void setAuthor(String author) {
	this.author = author;
    }
}
